package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import frame.FrameResBeheer;
import pnlMain.PnlWelkom;

public class ControlWelkom implements ActionListener {

	@SuppressWarnings("unused")
	private PnlWelkom pnlWelkom;
	private FrameResBeheer frb;

	public ControlWelkom(PnlWelkom pnlWelkom) {
		this.pnlWelkom = pnlWelkom;
	}

	public void actionPerformed(ActionEvent a) {
		if (a.getActionCommand().equals("RB")) {
			System.out.println("RB");
			frb = new FrameResBeheer();
			frb.setVisible(true);
			
		}
		if (a.getActionCommand().equals("AB")) {
			System.out.println("Afhaal beheer");
		}
		if (a.getActionCommand().equals("BB")) {
			System.out.println("Boekhouding beheer");
		}

		
		
	}

}
